function getImageInstance(imgUrl) {
    return new Promise((resolve, reject) => {
        const labelImage = new Image()
        labelImage.src = imgUrl
        labelImage.onload = () => {
            resolve({
                width: labelImage.width,
                height: labelImage.height
            })
        }
    })
}

 
export default getImageInstance